//
//  YDRechargeTableCell.h
//  PeiZiWangBei
//
//  Created by LK-IOS on 2017/11/14.
//  Copyright © 2017年 LK-IOS. All rights reserved.
//

#import <UIKit/UIKit.h>

@class YDRechargeTableCell , YDBankCardModel;


typedef NS_ENUM(NSUInteger, PayStyle) {
    Recharge,       //充值cell
    Withdraw,       //提现cell
};

@protocol SYRechargeTableCellDelegate <NSObject>

@optional


/**
 编辑支行信息

 @param cell cell
 */
-(void)rechargeTableCellDidClickChangeBankInformation:(YDRechargeTableCell *)cell;


/**
 选择了某一个银行

 @param cell cell
 */
-(void)rechargeTableCellDidSelected:(YDRechargeTableCell *)cell;

@end

@interface YDRechargeTableCell : UITableViewCell

//未添加任何银行卡时的背景图,有银行卡时，就将这个控件隐藏
@property (nonatomic , weak) UIImageView *noBankImage;


+ (instancetype)cellWithTableView:(UITableView *)tableView;

@property (nonatomic , strong) YDBankCardModel *model;

@property (nonatomic , weak)id<SYRechargeTableCellDelegate>delegate;



@property (nonatomic, assign)PayStyle payStyle;

@end
